package com.pty.demo.behaviour.visitor;

/**
 * @author pengty
 * @date 2020/3/16
 */
public class CooVisitor implements Visitor {

    @Override
    public void visit(SalesTeamElement salesTeamElement) {
        System.out.println(this.getClass().getSimpleName() + " 访问了 " + salesTeamElement.getClass().getSimpleName());
    }

    @Override
    public void visit(TechnicalTeamElement technicalTeamElement) {
        System.out.println(this.getClass().getSimpleName() + " 访问了 " + technicalTeamElement.getClass().getSimpleName());
    }
}
